import request from '@/utils/request'

// 查询事件管理-触发器条件列表
export function listEventTriggerCondition(query) {
  return request({
    url: '/manager/eventTriggerCondition/list',
    method: 'get',
    params: query
  })
}

// 查询事件管理-触发器条件详细
export function getEventTriggerCondition(conditionId) {
  return request({
    url: '/manager/eventTriggerCondition/getInfo/' + conditionId,
    method: 'get'
  })
}

// 新增事件管理-触发器条件
export function addEventTriggerCondition(data) {
  return request({
    url: '/manager/eventTriggerCondition/add',
    method: 'post',
    data: data
  })
}

// 修改事件管理-触发器条件
export function updateEventTriggerCondition(data) {
  return request({
    url: '/manager/eventTriggerCondition/edit',
    method: 'post',
    data: data
  })
}

// 删除事件管理-触发器条件
export function delEventTriggerCondition(conditionId) {
  return request({
    url: '/manager/eventTriggerCondition/remove/' + conditionId,
    method: 'get'
  })
}
